package org.qengine.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.qengine.entity.UserEntity;
import org.qengine.vo.LoginVo;
import org.qengine.vo.UserVo;

import java.util.List;


public interface UserService extends IService<UserEntity> {
    boolean addUser(UserEntity userEntity);
    boolean deleteUserById(Long id);
    boolean deleteUserByUserNickname(String user_name);
    IPage<UserEntity> search(UserVo vo);
    boolean updateUser(UserVo vo);
    boolean checkPassword(LoginVo loginVo);
    void registerUser(UserEntity userEntity);
    void batchImportUsers(List<UserEntity> users);
    String getUserRoleById(Long userId);
}
